{extend name="$index_style_layout" /}
{block name="head_title"}订阅消息{/block}
{block name="nav"}{/block}
{block name="body_content"}
<link rel="stylesheet" href="__STATIC__/index/default/wxlogin.css"> 
<div class="UserLoginCont">
	<div class="head"><i class="fa fa-bell"></i> 订阅消息</div>
	<div class="LoginCont">	
		<div class="Left">
			<ul>
				<ol><span>{if config('webdb.wxapp_appid')&&config('webdb.wxapp_appsecret')} 公众号 {else /} 订阅 {/if}</span><em>请用微信扫一扫订阅消息</em></ol>
				<li><img src="{:get_qrcode(get_url('location'))}"/></li>
			</ul>
		</div>
		<div class="Right {if config('webdb.wxapp_appid')&&config('webdb.wxapp_appsecret')}Left{/if}">
{if config('webdb.wxapp_appid')&&config('webdb.wxapp_appsecret')}

			<ul>
				<ol><span>小程序</span><em>请用微信扫一扫订阅消息</em></ol>
				<li><img src="{:fun('wxapp@wxapp_codeimg',get_url('location'),$userdb.uid)}"/></li>
			</ul>
{else /}
			<dl>
				<dt>欢迎订阅消息</dt>
				<dd>{qb:tag name="pc_mp_subscribe" type="text"}订阅消息后,你将可以接收到与你相关的重要消息提醒!{/qb:tag}</dd>
			</dl>
{/if}
			

			<!--<div><a href="#">订阅消息</a></div>-->
		</div>
	</div>
</div>
{/block}